package com.shield.framework.security.auth;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * security 用户
 * @author Andy
 */
@Getter
@Setter
public class AuthUser extends User {

	private Long userId;
	private String nickName;
	private Integer gender;
	private Boolean isAdmin;
	private String avatar;
	private String email;
	private String phone;


	public AuthUser(String username, String password, boolean enabled,
                    boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, true, true, accountNonLocked, authorities);
	}



}
